package br.com.tamochunas.controlefinanceiro.view.managedbean;

import java.io.Serializable;
import java.util.Collection;

import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;

import br.com.tamochunas.controlefinanceiro.model.DAO.LancamentoDAO;
import br.com.tamochunas.controlefinanceiro.model.TO.LancamentoTO;

@ViewScoped
@ManagedBean
public class LancamentoMB implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 793883694504738751L;
	
	private String teste;
	
	@PostConstruct
	public void postContruct(){
		teste = "teste";
	}
	
	
	public Collection<LancamentoTO> getListaLancamento(){
		LancamentoDAO lancamentoDAO = new LancamentoDAO();
		return lancamentoDAO.getLista();
	}

	public String getTeste() {
		return teste;
	}

	public void setTeste(String teste) {
		this.teste = teste;
	}
	

}
